Skip to content

feat(gemini): add support for gemini code assist #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

fmind
Copy link
Owner

@fmind fmind commented Mar 5, 2025

Closes #48

@fmind fmind added the feat A new feature. Correlates with MINOR in SemVer label Mar 5, 2025
@fmind fmind added this to the v4.1.0 milestone Mar 5, 2025
@fmind fmind self-assigned this Mar 5, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @fmind, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

This pull request introduces support for Gemini Code Assist, an AI assistant designed to increase coding productivity, provide code suggestions, and reduce code review time. It includes a configuration file (.gemini/config.yaml) to customize Gemini's behavior and updates the README.md file to document the new feature, its motivations, limitations, and alternatives.

Highlights

  • Gemini Code Assist Integration: Adds initial configuration and documentation for Gemini Code Assist.
  • Configuration File: Introduces .gemini/config.yaml to configure Gemini Code Assist's behavior, including disabling code reviews, setting comment severity thresholds, and enabling/disabling features for pull request events.
  • README Update: Updates README.md to include a section on Gemini Code Assist, outlining its motivations, limitations, and alternatives.

Changelog

Click here to see the changelog
  • .gemini/config.yaml
    • Creates a new configuration file to customize Gemini Code Assist behavior.
    • Configures code review settings, including disabling reviews and setting comment severity thresholds.
    • Enables summary and code review features for pull request opened events.
  • README.md
    • Adds a section for Gemini Code Assist under the 'Tools' -> 'Automation' section.
    • Describes the motivations for using Gemini Code Assist, such as increased productivity and code suggestion.
    • Outlines the limitations of Gemini Code Assist, including the potential for generating incorrect code or reviews.
    • Adds a section for Dependabot under the 'Tools' -> 'Automation' section.
    • Describes the motivations for using Dependabot, such as avoiding security issues and breaking changes.
    • Outlines the limitations of Dependabot, including the potential for breaking code.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


Trivia time!

What company developed Gemini Code Assist?

Click here for the answer
Google developed Gemini Code Assist.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@fmind fmind merged commit b0cf212 into v4.1.0 Mar 5, 2025
1 check passed
@fmind fmind deleted the 48-feat-add-gemini-code-assist-configuration-file branch March 5, 2025 20:06
Copy link
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

This was referenced Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat A new feature. Correlates with MINOR in SemVer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant